
<h1><span class="yiyi-st" id="yiyi-14">numpy.polynomial.polynomial.polyvander</span></h1>
        <blockquote>
        <p>原文：<a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.polynomial.polynomial.polyvander.html">https://docs.scipy.org/doc/numpy/reference/generated/numpy.polynomial.polynomial.polyvander.html</a></p>
        <p>译者：<a href="https://github.com/wizardforcel">飞龙</a> <a href="http://usyiyi.cn/">UsyiyiCN</a></p>
        <p>校对：（虚位以待）</p>
        </blockquote>
    
<dl class="function">
<dt id="numpy.polynomial.polynomial.polyvander"><span class="yiyi-st" id="yiyi-15"> <code class="descclassname">numpy.polynomial.polynomial.</code><code class="descname">polyvander</code><span class="sig-paren">(</span><em>x</em>, <em>deg</em><span class="sig-paren">)</span><a class="reference external" href="http://github.com/numpy/numpy/blob/v1.11.3/numpy/polynomial/polynomial.py#L1013-L1066"><span class="viewcode-link">[source]</span></a></span></dt>
<dd><p><span class="yiyi-st" id="yiyi-16">给定程度的Vandermonde矩阵。</span></p>
<p><span class="yiyi-st" id="yiyi-17">返回度<em class="xref py py-obj">deg</em>和采样点<em class="xref py py-obj">x</em>的Vandermonde矩阵。</span><span class="yiyi-st" id="yiyi-18">Vandermonde矩阵定义为</span></p>
<div class="math">
<p></p>
</div><p><span class="yiyi-st" id="yiyi-19">其中<em class="xref py py-obj">0 。</em></span><span class="yiyi-st" id="yiyi-20"><em class="xref py py-obj">V</em>的前导索引<em class="xref py py-obj">x</em>的元素，最后一个索引是<em class="xref py py-obj">x</em>的幂。</span></p>
<p><span class="yiyi-st" id="yiyi-21">如果<em class="xref py py-obj">c</em>是长度<em class="xref py py-obj">n + 1</em>和<em class="xref py py-obj">V</em>的系数的1-D数字组是矩阵<code class="docutils literal"><span class="pre">t4&gt; <span class="pre">=</span> <span class="pre">polyvander（x，</span> <span class="pre">n）</span></span></code>，则<code class="docutils literal"><span class="pre">t8&gt; t9&gt; <span class="pre">c）</span></span></code>和<code class="docutils literal"><span class="pre">polyval（x，</span> <span class="pre">c）</span></code></span><span class="yiyi-st" id="yiyi-22">该等价性对于最小二乘拟合和用于评估大量相同程度的多项式和样本点两者都是有用的。</span></p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name">
<col class="field-body">
<tbody valign="top">
<tr class="field-odd field"><th class="field-name"><span class="yiyi-st" id="yiyi-23">参数：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-24"><strong>x</strong>：array_like</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-25">数组的点。</span><span class="yiyi-st" id="yiyi-26">根据任何元素是否复杂，将dtype转换为float64或complex128。</span><span class="yiyi-st" id="yiyi-27">如果<em class="xref py py-obj">x</em>是标量，它被转换为1-D数组。</span></p>
</div></blockquote>
<p><span class="yiyi-st" id="yiyi-28"><strong>deg</strong>：int</span></p>
<blockquote>
<div><p><span class="yiyi-st" id="yiyi-29">所得矩阵的度。</span></p>
</div></blockquote>
</td>
</tr>
<tr class="field-even field"><th class="field-name"><span class="yiyi-st" id="yiyi-30">返回：</span></th><td class="field-body"><p class="first"><span class="yiyi-st" id="yiyi-31"><strong>vander</strong>：ndarray。</span></p>
<blockquote class="last">
<div><p><span class="yiyi-st" id="yiyi-32">Vandermonde矩阵。</span><span class="yiyi-st" id="yiyi-33">返回矩阵的形状是<code class="docutils literal"><span class="pre">x.shape</span> <span class="pre">+</span> <span class="pre">（deg</span> <span class="pre">+</span> <span class="pre">）</span></code>，其中最后一个索引是<em class="xref py py-obj">x</em>的幂。</span><span class="yiyi-st" id="yiyi-34">dtype将与转换的<em class="xref py py-obj">x</em>相同。</span></p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition seealso">
<p class="first admonition-title"><span class="yiyi-st" id="yiyi-35">也可以看看</span></p>
<p class="last"><span class="yiyi-st" id="yiyi-36"><a class="reference internal" href="numpy.polynomial.polynomial.polyvander2d.html#numpy.polynomial.polynomial.polyvander2d" title="numpy.polynomial.polynomial.polyvander2d"><code class="xref py py-obj docutils literal"><span class="pre">polyvander2d</span></code></a>，<a class="reference internal" href="numpy.polynomial.polynomial.polyvander3d.html#numpy.polynomial.polynomial.polyvander3d" title="numpy.polynomial.polynomial.polyvander3d"><code class="xref py py-obj docutils literal"><span class="pre">polyvander3d</span></code></a></span></p>
</div>
</dd></dl>
